




const express = require('express') ;

const body = require('body-parser') ;

const router = require('./router') ;


const app = express() ;




app.use('/static' , express.static('./client/')) ;


app.use(body({extended : false})) ;
app.use(body.json());



app.use('/api' , router );




app.listen(2000)










// 实现文件的接收    需要用到第三方插件   multer